package cn.qihua.dao;

import java.util.List;

import cn.qihua.model.BaseOrder;

public interface IBaseOrderDAO {

	public static final String BAIDU = "baidu";

	public abstract Boolean save(BaseOrder transientInstance);

	public abstract void delete(BaseOrder persistentInstance);

	public abstract BaseOrder findById(java.lang.Integer id);

	public abstract List findByExample(BaseOrder instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByNbid(Object nbid);

	public abstract List findByText(Object text);

	public abstract List findByUserId(Object userId);

	public abstract List findByBaidu(Object baidu);

	public abstract List findByType(Object type);

	public abstract List findByLinkman(Object linkman);

	public abstract List findByPhone(Object phone);

	public abstract List findByQq(Object qq);

	public abstract List findByIsnew(Object isnew);

	public abstract List findByStatus(Object status);

	public abstract List findByRemark(Object remark);

	public abstract List findAll();

	public abstract Boolean update(BaseOrder transientInstance);

	public abstract List<BaseOrder> findByProperty(String propertyName,
			Object value, int start, int limit);

	public abstract List<BaseOrder> findByStatus(Object status, int start,
			int limit);

	public abstract Integer getTotal();

	public abstract boolean changeStatus(int id, String status);

	public abstract Integer getTotalByProperty(String propertyName, Object value);

	public abstract List<BaseOrder> findAll(int start, int limit);

	public abstract List<BaseOrder> findByFuzzy(String propertyName,
			Object value);

}